# -*- coding: utf-8 -*-
from liberHook.BaseHook import BaseHook
from liberLibs.dccLibs import Nuke


class Hook(BaseHook):
    def __init__(self, library, directory, ext, start, end):
        super(Hook, self).__init__(library, directory, ext, start, end)

    def execute(self):
        self.remove_location()
        file_path = self.file
        Nuke.export_selected(file_path)
